package com.second.service;


import com.second.model.dto.pay.OrdDto;
import com.second.model.dto.order.ForderDto;
import com.second.model.pojo.FOrd;

import java.util.List;
import java.util.Optional;

public interface IFOrdService {

    //取消订单
    Optional<FOrd> CencelOrd(Integer Id);

    List<ForderDto> UsedOrd(Integer userId);

    List<ForderDto> SelectAllOrd(Integer userId);

    List<ForderDto> outdateOrd(Integer userId);


    //统计good已售出的数量
    int countGoodSold(Integer goodId);

    //    创建订单
    OrdDto save(Double ordPrice, Integer userId,Integer shopId,Integer goodsId);

    int findByOrdCodeAndOrderPrice(String orderCode,Integer orderPrice);
    FOrd findByOrdCode(String orderCode);

    int changeOrdUsed(String orderCode);

    //死信超时订单
    int outTimeOrd(String ordNo);
}
